/**
  ******************************************************************************
  * @file    OLED.h
  * @author  
  * @version 
  * @date    
  * @brief       
  ******************************************************************************
  * @attention
  *OLED
  *
  ******************************************************************************  
  */ 
#ifndef __OLED_H
#define __OLED_H
#include "stm32f4xx.h"
#include "oledfont.h"
#define u8 uint8_t  
#define u32 uint32_t 
uint8_t OLED_Init(void);
void Picture(void);
uint8_t OLED_Write_Command(uint8_t command);
uint8_t OLED_Write_Data(uint8_t data);
void picture_40_40(uint8_t x,uint8_t y,uint8_t *str,uint8_t mode);
void fill_picture(uint8_t fill_Data);
void show_char(uint8_t x,uint8_t y,uint8_t ch,uint8_t size);
void OLED_Set_pos(uint8_t x,uint8_t y);
void OLED_show_str(uint8_t x,uint8_t y,uint8_t* str,uint8_t size);
void OLED_ShowCHinese(uint8_t x,uint8_t y,uint8_t no,uint8_t mode);
void OLED_Display_On(void);
void OLED_Display_Off(void);
void OLED_ShowNum(u8 x,u8 y,u32 num,u8 len,u8 size2);
void clear_area(uint8_t x1,uint8_t x2,uint8_t y1,uint8_t y2);
void OLED_DrawBMP(unsigned char x0, unsigned char y0,unsigned char x1, unsigned char y1,unsigned char BMP[]);

#endif
